<template>
  <div class="app">
    <slot>
        <p>
            123
        </p>
    </slot>

    <slot name="slot1" :key1="name" key2="非vue变量">

    </slot>
  </div>
</template>

<script>
export default {
    data() {
        return {
            name:'kap'
        }
    }
}
</script>

<style>
p {
    color: red;
}
</style>